package org.jackysoft.controller;

import javax.annotation.Resource;

import org.jackysoft.controller.base.AbstractController;
import org.jackysoft.entity.LoginContext;
import org.jackysoft.service.LoginContextService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/uc")
public class LoginContextController extends AbstractController<LoginContext> {
	
	@Resource
	private LoginContextService service;
	

	@RequestMapping("/myucs")
	@ResponseBody
	public LoginContext myucs(String owner,@ModelAttribute LoginContext bean) throws Exception {
		bean = service.getByOwner(owner);
		return bean;
	}
}